import JSEncrypt from 'jsencrypt'

const encryptIns = new JSEncrypt()
export function rsaEncrypt(text) {
  // 加密
  return encryptIns.encrypt(text)
}

export function rsaDecrypt(text) {
  // 解密
  return encryptIns.decrypt(text)
}
